package com.tobby.camel.camelinaction.chapter2.multicast;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;

public class OrderLogger implements Processor {

	private String phase;

	@Override
	public void process(Exchange exchange) throws Exception {
		System.out.println(phase + " Received Xml File : "
				+ exchange.getIn().getHeader("CamelFileName"));
	}

	public void setPhase(String phase) {
		this.phase = phase;
	}

}
